package com.sunwayhorizo.health.hl7.persistent.pk;

import java.io.Serializable;

public class RimCoreEntyTelAddrsPK implements Serializable {
    public Long entityId;
    public Long entityVersionNum;
    public Long telAddressId;

    public RimCoreEntyTelAddrsPK() {
    }

    public RimCoreEntyTelAddrsPK(Long entityId, Long entityVersionNum, Long telAddressId) {this.entityId = entityId;
        this.entityVersionNum = entityVersionNum;
        this.telAddressId = telAddressId;
    }

    public boolean equals(Object other) {
        if (other instanceof RimCoreEntyTelAddrsPK) {
            final RimCoreEntyTelAddrsPK otherRimCoreEntyTelAddrsPK = (RimCoreEntyTelAddrsPK) other;
            final boolean areEqual = 
                (otherRimCoreEntyTelAddrsPK.entityId.equals(entityId) && otherRimCoreEntyTelAddrsPK.entityVersionNum.equals(entityVersionNum) && otherRimCoreEntyTelAddrsPK.telAddressId.equals(telAddressId));
            return areEqual;
        }
        return false;
    }

    public int hashCode() {
        return super.hashCode();
    }
}
